<!-- Page statistics and control buttons area -->
    <div class="statsRow">
        <div class="wrapper statsItems">
        
            <!-- Stats item -->
            <div class="sItem usersStats">
                <h2><a title="" class="value"><?php echo $this->countAdvertisers['count']; ?><span>Advertisers</span></a></h2>
                <div class="statsDetailed" id="s3">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo $this->countActiveAdvertisers['count']; ?></h4><span>active</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBlockedAdvertisers['count']; ?></h4><span>blocked</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countNotConfirmedAdvertisers['count']; ?></h4><span>pending</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>10 hrs 55 min</span>
                            <div class="contentProgress"><div class="barG tipS" id="bar3" title="32%"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/users.png" class="icon" alt="" /><span>View advertisers</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="zeroBar" values="5,10,15,20,25,30,35,40,45,50"></span>
                    <span class="zero">0.0%</span>
                </span>
            </div>
			
			<div class="sItem ticketsStats">
                <h2><a title="" class="value"><?php echo $this->countAdvertisements['count']; ?><span>Advertisements</span></a></h2>
                <div class="statsDetailed" id="s1" style="width:300px">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo $this->countContextAdvertisements['count']; ?></h4><span>context</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBannerAdvertisements['count']; ?></h4><span>banners</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBlogAdvertisements['count']; ?></h4><span>microblogs</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countSocialNetworkAdvertisements['count']; ?></h4><span>social</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countVideoAdvertisements['count']; ?></h4><span>video</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>19 hrs 49 min</span>
                            <div class="contentProgress"><div class="barG tipS" title="19%" id="bar1"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/stats.png" class="icon" alt="" /><span>View statistics</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="negBar" values="5,10,15,20,18,16,14,20,15,16"></span>
                    <span class="negative">+0.6%</span>
                </span>
            </div>

			<!-- Stats item -->
            <div class="sItem ticketsStats">
                <h2><a title="" class="value"><?php echo $this->countCampaigns['count']; ?><span>Campaigns</span></a></h2>
                <div class="statsDetailed" id="s1">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo $this->countActiveCampaigns['count']; ?></h4><span>active</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countNotConfirmedCampaigns['count']; ?></h4><span>not confirmed</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBlockedCampaigns['count']; ?></h4><span>blocked</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>19 hrs 49 min</span>
                            <div class="contentProgress"><div class="barG tipS" title="19%" id="bar1"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/stats.png" class="icon" alt="" /><span>View statistics</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="negBar" values="5,10,15,20,18,16,14,20,15,16"></span>
                    <span class="negative">+0.6%</span>
                </span>
            </div>
			
			 
			
			<div class="sItem visitsStats">
            	<h2><a title="" class="value"><?php echo $this->countPublishers['count']; ?><span>Publishers</span></a></h2>
                <div class="statsDetailed" id="s2">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo $this->countActivePublishers['count']; ?></h4><span>active</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBlockedPublishers['count']; ?></h4><span>blocked</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countNotConfirmedPublishers['count']; ?></h4><span>pending</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>10 hrs 55 min</span>
                            <div class="contentProgress"><div class="barG tipS" id="bar2" title="68%"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/users.png" class="icon" alt="" /><span>View publishers</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="posBar" values="5,10,15,20,25,30,35,40,45,50"></span>
                    <span class="positive">+0.6%</span>
                </span>
            </div>
			
            <!-- Stats item -->
            <div class="sItem ordersStats">
                <h2><a title="" class="value"><?php echo $this->countSites['count']; ?><span>Websites</span></a></h2>
                <div class="statsDetailed" id="s4">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo $this->countActiveSites['count']; ?></h4><span>approved</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countNotConfirmedSites['count']; ?></h4><span>pending</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBlockedSites['count']; ?></h4><span>blocked</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>1 hr 19 min</span>
                            <div class="contentProgress"><div class="barG tipS" id="bar4" title="89%"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/stats.png" class="icon" alt="" /><span>View statistics</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="negBar" values="5,10,15,20,25,30,35,40,45,50"></span>
                    <span class="negative">+0.6%</span>
                </span>
            </div>
			
			<div class="sItem ordersStats">
                <h2><a title="" class="value"><?php echo $this->countAdvSpaces['count']; ?><span>Adspaces</span></a></h2>
                <div class="statsDetailed" id="s4">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo $this->countActiveAdvSpaces['count']; ?></h4><span>approved</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countNotConfirmedAdvSpaces['count']; ?></h4><span>pending</span></div>
                            <div class="sDisplay"><h4><?php echo $this->countBlockedAdvSpaces['count']; ?></h4><span>blocked</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>1 hr 19 min</span>
                            <div class="contentProgress"><div class="barG tipS" id="bar4" title="89%"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/mages/icons/dark/stats.png" class="icon" alt="" /><span>View statistics</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="negBar" values="5,10,15,20,25,30,35,40,45,50"></span>
                    <span class="negative">+0.6%</span>
                </span>
            </div>
			
			<div class="sItem ticketsStats">
                <h2><a title="" class="value">11%<span>Fraud level</span></a></h2>
                <div class="statsDetailed" id="s5">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4>20%</h4><span>banners</span></div>
                            <div class="sDisplay"><h4>15%</h4><span>context</span></div>
                            <div class="sDisplay"><h4>5%</h4><span>social</span></div>
							<div class="sDisplay"><h4>10%</h4><span>microbligging</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>19 hrs 49 min</span>
                            <div class="contentProgress"><div class="barG tipS" title="19%" id="bar1"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/stats.png" class="icon" alt="" /><span>View statistics</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="negBar" values="5,10,15,20,18,16,14,20,15,16"></span>
                    <span class="negative">+0.6%</span>
                </span>
            </div>
			
			<div class="sItem usersStats">
                <h2><a title="" class="value"><?php echo $this->totalBalance.'$'; ?><span>Overall balance</span></a></h2>
                <div class="statsDetailed" id="s3">
                    <div class="statsContent">
                        <div class="sElements">
                            <div class="sDisplay"><h4><?php echo round($this->advertisersBalance['balance'], 2).'$'; ?> </h4><span>advertisers</span></div>
                            <div class="sDisplay"><h4><?php echo round($this->publishersBalance['balance'], 2).'$'; ?></h4><span>publishers</span></div>
                            <div class="sDisplay"><h4>5373$</h4><span>system</span></div>
                        </div>
                        <span class="line"></span>
                        <div class="statsUpdate">
                            <span>Next update in:</span>
                            <span>10 hrs 55 min</span>
                            <div class="contentProgress"><div class="barG tipS" id="bar3" title="32%"></div></div>
                        </div>
                        <div class="statsDropBtn"><a href="#" class="button basic"><img src="/images/icons/dark/users.png" class="icon" alt="" /><span>View advertisers</span></a></div>
                    </div>
                </div>
                <span class="changes">
                    <span class="zeroBar" values="5,10,15,20,25,30,35,40,45,50"></span>
                    <span class="zero">0.0%</span>
                </span>
            </div>
			
        </div>
    </div>
	<div class="line"></div>

    <!-- Main content wrapper -->
    <div class="wrapper">
        
        <!-- Widgets -->
        <div class="widgets">
            <div class="oneTwo">
            
                <!-- Latest update widget -->
                <div class="widget">
                    <div class="title"><img src="/images/icons/dark/refresh4.png" alt="" class="titleIcon" /><h6>Latest updates</h6></div>
                    
                    <div class="updates">
                    	<div class="newUpdate">
                            <div class="uDone">
                                <a href="#" title=""><strong>A new server is on the board!</strong></a>
                                <span>We've just set up a new server. Our gurus ...</span>
                            </div>
                            <div class="uDate"><span class="uDay">08</span>feb</div>
                            <div class="clear"></div>
                        </div>
                        
                    	<div class="newUpdate">
                            <span class="uAlert">
                                <a href="#" title=""><strong>[ URGENT ] ex.ua was closed by government</strong></a>
                                <span>But already everything was solved. It will ...</span>
                            </span>
                            <span class="uDate"><span class="uDay">08</span>feb</span>
                            <div class="clear"></div>
                        </div>
                        
                    	<div class="newUpdate">
                            <span class="uDone">
                                <a href="#" title=""><strong>The goal was reached!</strong></a>
                                <span>We just passed 1000 sales! Congrats to all</span>
                            </span>
                            <span class="uDate"><span class="uDay">07</span>feb</span>
                            <div class="clear"></div>
                        </div>
                        
                    	<div class="newUpdate">
                            <span class="uNotice">
                                <a href="#" title=""><strong>Meat a new team member - Don Corleone</strong></a>
                                <span>Very dyplomatic and flexible sales manager</span>
                            </span>
                            <span class="uDate"><span class="uDay">06</span>feb</span>
                            <div class="clear"></div>
                        </div>
                        
                    </div>
                </div>
            </div>
        
        	<!-- 2 columns widgets -->
            <div class="oneTwo">
            
                <!-- My tasks table widget -->
                <div class="widget">
                    <div class="title"><img src="/images/icons/dark/timer.png" alt="" class="titleIcon" /><h6>My tasks</h6><div class="num"><a href="#" class="blueNum">+245</a></div></div>
                    <table cellpadding="0" cellspacing="0" width="100%" class="sTable taskWidget">
                        <thead>
                            <tr>
                                <td>Description</td>
                                <td width="100">Status</td>
                                <td width="60">Acts</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td class="taskPr"><a href="#" title="">Finish design</a></td>
                                <td><span class="green f11">in progress</span></td>
                                <td class="actBtns"><a href="#" title="Update" class="tipS"><img src="/images/icons/edit.png" alt="" /></a><a href="#" title="Remove" class="tipS"><img src="/images/icons/remove.png" alt="" /></a></td>
                            </tr>
                            <tr>
                                <td class="taskP"><a href="#" title="">Get HTML done</a></td>
                                <td><span class="lGrey f11">pending</span></td>
                                <td class="actBtns"><a href="#" title="Update" class="tipS"><img src="/images/icons/edit.png" alt="" /></a><a href="#" title="Remove" class="tipS"><img src="/images/icons/remove.png" alt="" /></a></td>
                            </tr>
                            <tr>
                                <td class="taskP"><a href="#" title="">Connect jQuery stuff</a></td>
                                <td><span class="lGrey f11">pending</span></td>
                                <td class="actBtns"><a href="#" title="Update" class="tipS"><img src="/images/icons/edit.png" alt="" /></a><a href="#" title="Remove" class="tipS"><img src="/images/icons/remove.png" alt="" /></a></td>
                            </tr>
                            <tr>
                                <td class="taskD"><a href="#" title="">Start beta testing</a></td>
                                <td><span class="red f11">done</span></td>
                                <td class="actBtns"><a href="#" title="Update" class="tipS"><img src="/images/icons/edit.png" alt="" /></a><a href="#" title="Remove" class="tipS"><img src="/images/icons/remove.png" alt="" /></a></td>
                            </tr>
                        </tbody>
                    </table> 
                </div>
                <div class="clear"></div>

            </div>
            <div class="clear"></div>
        </div>
    	
    </div>
    